@/*
    value : 值
@*/
@if(isEmpty(value)){
@	value="";
@}
<script src="${ctxPath}/static/libs/kindEditor/kindeditor-all.js"></script>
<script src="${ctxPath}/static/libs/kindEditor/zh-CN.js"></script>
<script src="${ctxPath}/static/libs/kindEditor/code/prettify.js"></script>
<link rel="stylesheet" href="${ctxPath}/static/libs/kindEditor/themes/default/default.css" />
<link rel="stylesheet" href="${ctxPath}/static/libs/kindEditor/code/prettify.css" />

<div class="form-group has-feedback">
    <label class="lab">${isEmpty(title)?'正文':title}</label>
    <div class="ele ${isEmpty(name)?'ele-fit':''}"><textarea name="content1" cols="100" rows="8"  style="width:100%;height:560px;visibility:hidden;">${value}</textarea></div>
</div>

<script>
    var KindEdit = {
        kingeditor:null,
    }
    $(function () {
        KindEditor.ready(function(K) {
            KindEdit.kingeditor = K.create('textarea[name="content1"]', {
                allowImageUpload  : true,
                filterMode:false,
                uploadJson : Sys.backendPath + '/pan/file/uploadImg',
                items : [
                    'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
                    'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
                    'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
                    'superscript', 'clearhtml', 'quickformat', 'selectall',
                    'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
                    'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
                    'media', 'insertfile','table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
                    'anchor', 'link', 'unlink', '|', 'fullscreen']
            });
            prettyPrint();
        });
    })
</script>
